package _12;

import java.util.Scanner;

public class Information {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String name = in.next();
        int age = in.nextInt();
        String sex = in.next();
        String ID = in.next();
        String major = in.next();
        Student s = new Student();
        s.setInfo(name,age, sex,ID,major);
        s.showInfo();
    }
}

class People{
    protected String name;
    protected int age;
    protected String sex;
    public void setBasic(String name, int age, String sex){
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
    public void showBasic(){
        System.out.println("姓名：" + this.name);
        System.out.println("年龄：" + this.age);
        System.out.println("性别：" + this.sex);
    }
}

class Student extends People{
    private String studentID;
    private String major;
    public void setInfo(String name, int age, String sex, String studentID, String major){
        super.setBasic(name,age,sex);
        this.studentID = studentID;
        this.major = major;
    }
    public void showInfo(){
        super.showBasic();
        System.out.println("学号：" + this.studentID);
        System.out.println("专业：" + this.major);
    }
}
